#include "SeqList.h"

void test1(void)
{
	SL s;
	SeqListInit(&s);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);
	SeqListPushBack(&s, 6);
	SeqListPrint(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPrint(&s);
	SeqListPushFront(&s, 10);
	SeqListPushFront(&s, 20);
	SeqListPushFront(&s, 30);
	SeqListPushFront(&s, 40);
	SeqListPrint(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPrint(&s);
	//SeqListDestroy(&s);
}

void test2()
{
	SL s;
	SeqListInit(&s);
	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	//int ret = SeqListFind(&s, 2);
	SeqListPrint(&s);
	SeqListInsert(&s, 3, 10);
	SeqListInsert(&s, 3, 20);
	SeqListInsert(&s, 3, 30);
	SeqListPrint(&s);
	SeqListErase(&s, 3);
	SeqListErase(&s, 3);
	SeqListPrint(&s);
}
int main()
{
	test2();
	return 0;
}